package com.hxl.tech.gateway.auth.dto.application;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxl.tech.gateway.common.constant.AppConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 应用 DTO 
 * @author soliddq
 * @date 2023-09-20
 */
@Data
public class ApplicationDTO {

    @ApiModelProperty(value = "应用ID")
    private String appId;

    @ApiModelProperty(value = "应用密钥")
    private String appSecret;

    @ApiModelProperty(value = "应用名称")
    private String appName;

    @ApiModelProperty(value = "开发者ID")
    private String userId;

    @ApiModelProperty(value = "应用类型(DEV|SYSTEM)")
    private String appType;

    @ApiModelProperty(value = AppConstant.StateEnum.description)
    private AppConstant.StateEnum state;

    @ApiModelProperty(value = "重定向定制，必须和授权链接一致")
    private String redirectUri;

    @ApiModelProperty(value = "接收授权Token地址")
    private String receiveTokenUri;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
